<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class FURLDefault implements FURLParser {

    public static function parse(string $furl) {
        $url = substr($furl, 1);
        $url = explode('/', $url);
        $ret = array();
        if (count($url) == 1 && strpos($url[0], '.') > -1) {
            $file = explode('.', $url[0]);
            $fname = array_shift($file);
            $ext = implode('.', $file);
            $ret['xdyn'] = 'main';
            $ret['page'] = $fname;
            $ret['query_type'] = $ext;
        }

        return $ret;
    }

}

?>
